package com.un.ebs.invoice.dto;

import com.un.ebs.invoice.enums.InvoiceCashTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/12/6 16:26
 */
@Data
public class CashDto {

    @NotNull(message = "往来单位不能为空。")
    private String entId;

    @NotNull(message = "收/付款金额不能为空。")
    private Double money;

    private Date cashDate;

    @NotNull(message = "收付款类别不能为空。")
    private InvoiceCashTypeEnum type;

    @NotNull(message = "结算方式不能为空。")
    private String moneyDict;

    private String remark;
}
